Remove direct cpumask_t members from struct vcpu and struct domain
authorJan Beulich <jbeulich@novell.com>
Tue, 5 Apr 2011 12:00:54 +0000 (13:00 +0100)
committerJan Beulich <jbeulich@novell.com>
Tue, 5 Apr 2011 12:00:54 +0000 (13:00 +0100)
commit4551775df58d42e2dcfd2a8ac4bcc713709e8b81
tree5e10216631c44c2ec3102f85ca58646d766f46e5
parent2bbb3d0fe9149b302b42c98cffe3fbf1aa286548
Remove direct cpumask_t members from struct vcpu and struct domain

The CPU masks embedded in these structures prevent NR_CPUS-independent
sizing of these structures.

Basic concept (in xen/include/cpumask.h) taken from recent Linux.

For scalability purposes, many other uses of cpumask_t should be
replaced by cpumask_var_t, particularly local variables of functions.
This implies that no functions should have by-value cpumask_t
parameters, and that the whole old cpumask interface (cpus_...())
should go away in favor of the new (cpumask_...()) one.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
22 files changed:
xen/arch/ia64/xen/mm.c
xen/arch/ia64/xen/vhpt.c
xen/arch/x86/cpu/mcheck/vmce.c
xen/arch/x86/domain.c
xen/arch/x86/hvm/hvm.c
xen/arch/x86/hvm/svm/svm.c
xen/arch/x86/hvm/vmx/vmx.c
xen/arch/x86/mm.c
xen/arch/x86/mm/hap/hap.c
xen/arch/x86/mm/shadow/common.c
xen/arch/x86/mm/shadow/multi.c
xen/arch/x86/traps.c
xen/common/domain.c
xen/common/domctl.c
xen/common/grant_table.c
xen/common/keyhandler.c
xen/common/sched_credit.c
xen/common/sched_sedf.c
xen/common/schedule.c
xen/include/asm-x86/hvm/vmx/vmcs.h
xen/include/xen/cpumask.h
xen/include/xen/sched.h